import { generateUUID } from './utils/helpers'

import dianmingHtml2 from './components/dianming/dianming2.html';

// import './assets/styles/home.scss';
import '@assets/styles/reset.scss';
import '@assets/styles/font/iconfont.scss';
import '@assets/styles/dianming2.scss';

// './components/dianming';
import dianm from '@components/dianming';

import tianjia, { yanseshuxin } from '@components/dianming/dianming2';

// 等待其它资源加载完毕在加载此文件
document.addEventListener('DOMContentLoaded', () => {

  new dianm()
  console.log(generateUUID());

  const tj = new tianjia()
  tj.addHandler()
  tj.groupEl()
  yanseshuxin()
})
const app = document.getElementById('app') as HTMLDivElement

if (app) {
  app.innerHTML = `
    ${dianmingHtml2}
  `;
}